﻿using UnityEngine;

namespace Koroutine.Runtime.Condition
{
    public class DelayForSecond : ICondition
    {
        private float _delaySecond;

        public DelayForSecond(float delaySecond)
        {
            _delaySecond = delaySecond;
        }

        public bool Check()
        {
            return _delaySecond <= 0f;
        }

        public void Update()
        {
            _delaySecond -= Time.deltaTime;
        }
    }
}